<template>
	<view class="con" style="padding-bottom: 20px;">
		<view>
			<mp-html :content="info.content" />
		</view>
		<view >
			<view class="size31 mt10">
				{{info.title}}
			</view>
			<view class="size25 colorB8B8B8 mt10">发布时间：{{info.update_time}}</view>
		</view>
	</view>
</template>
 
<script>
	export default {
		data() {
			return {
				info:{}
			}
		},
		onLoad(option) {
			this.http('/article/details/'+option.id).then(res=>{
				// res.data.content=res.data.content.replace(/<video/g,"<video class='video'")
				// console.log(res.data.content)
				this.info=res.data
			})
		},
		methods: {
			
		}
	}
</script>

<style>
video{
	width:100% !important;
	height: auto !important;
}
</style>
